package com.ztsoft.user.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ztsoft.user.pojo.entity.user.SysUser;
import com.ztsoft.user.pojo.vo.user.SysUserVo;
import com.ztsoft.user.utils.Result;
import com.ztsoft.user.utils.UserHolder;

import java.util.Map;

public interface SysUserService extends IService<SysUser> {

    Result<Object> queryUserByPage(SysUser user, Integer currentPage, Integer pageSize);

    Result<Object> addUser(SysUserVo sysUserVo);

    Result<Object> updateUser(SysUserVo sysUserVo);

    Result<Object> deleteUser(String id);

    Result<Object> login(Map<String, Object> map);

    Result<Object> getInfo();

    Result<Object> getRouters();

    UserHolder getUserInfo();
    UserHolder getUserInfo2();

    Result<Object> changePassword(SysUserVo sysUserVo);

    Result<Object> manageUser();

    Result<Object> manageProject();
}